﻿<%@ Page Title="Pedido" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FinalizaPedido.aspx.cs" Inherits="Kakaroto.Pedidos.FinalizaPedido" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h5>Mesa:
                       <asp:Label ID="lblMesa" runat="server" EnableViewState="false" Font-Size="Large"></asp:Label>
                    </h5>
                </div>

                <div class="panel-body">
                    <p><b>Valor Total:</b>
                       <asp:Label ID="lblTotal" runat="server" EnableViewState="false"></asp:Label></p>
                </div>
            </div>
        
    <asp:FormView runat="server"
            ItemType="Kakaroto.Models.Pedido" DefaultMode="Edit" DataKeyNames="Id"
            UpdateMethod="UpdateItem" SelectMethod="GetItem"
            OnItemCommand="ItemCommand" RenderOuterTable="false">
            <EmptyDataTemplate>
                <div class="alert alert-danger" role="alert">
                       Falha no carregamento de dados
                </div> 
            </EmptyDataTemplate>
            <EditItemTemplate>
                <fieldset class="form-horizontal">
                    
				    <asp:DynamicControl Mode="Edit" DataField="Cliente_Nome" runat="server" />
                    
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
							<asp:Button runat="server" ID="UpdateButton" CommandName="Update" Text="Enviar para a cozinha" CssClass="btn btn-success" />
							<asp:Button runat="server" ID="CancelButton" CommandName="Cancel" Text="Cancelar" CausesValidation="false" CssClass="btn btn-default" />
						</div>
					</div>
                </fieldset>
            </EditItemTemplate>
        </asp:FormView>

</asp:Content>
